﻿namespace BabyBusMobileWeb.Core
{
    internal class Constants
    {
        public const string BaseUrl = "http://115.28.225.27/BabyBusAPI/Api/";

        public const string Login = "LoginRegister?Login";
        public const string LoginNew = "LoginRegister?Login";

        public const string Register = "LoginRegister?SaveUser";

        public const string TestRecord = "TestRecord?$filter=ChildID eq {0}";
        #region Comm
        public const string ClassArtList = "Comm?ClassList&UserID={0}";
        public const string KindergartenArtList = "comm?KindergartenList&UserID={0}";
        public const string ClassQList = "Comm?ClassQuestionList&UserID={0}";
        public const string OwnQList = "Comm?OwnQuestionList&UserID={0}";
        public const string PrtQList = "";
        public const string SendQuestion = "Question";
        #endregion

        #region MainPage
        public const string ChildListInfo = "Child?$filter=ClassID eq {0}";
        public const string ChildInfo = "Child?$filter=ChildID eq {0}";
        public const string ChildAllInfo = "MainPage?ChildRelation&UserID={0}";
        #endregion

        public const string MessageListTop4 = "Article?$filter=(UserClassRelationID eq {0})  and (ArticleTpye ne '园区通知')&$top=4";
        public const string MessageListTop1 = "Article?$filter=(UserClassRelationID eq {0})  and (ArticleTpye eq '园区通知')&$top=1";

        public const string ArticleDetial = "Article?$filter=ArticleID eq {0}";

        public const string CheckPassword = "User?$filter=(UserID eq {0}) and (Password eq '{1}') ";
        public const string ChangePassword = "LoginRegister?ChangePwd";

        public const string UserInfo = "User?$filter=UserID eq {0}";
        public const string UserInfoByLoginName = "User?$filter=LoginName eq '{0}'";

        public const string ChildDetail = "Child?$filter=ChildID eq {0}";
    }
}
